```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MCP Git Server - AI驱动的Git仓库管理工具</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #2d3748;
            background-color: #f8fafc;
            line-height: 1.6;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }
        .card-hover:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        .feature-icon {
            width: 48px;
            height: 48px;
            background-color: #e9d5ff;
            color: #7c3aed;
        }
        .code-block {
            background-color: #1e293b;
            color: #f8fafc;
            border-radius: 0.5rem;
            font-family: 'Courier New', Courier, monospace;
        }
        .section-divider {
            height: 1px;
            background: linear-gradient(90deg, rgba(200, 200, 200, 0) 0%, rgba(200, 200, 200, 0.5) 50%, rgba(200, 200, 200, 0) 100%);
        }
        .mermaid-container {
            background-color: white;
            border-radius: 0.5rem;
            padding: 1rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
    </style>
</head>
<body class="antialiased">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-4 sm:px-6 lg:px-8">
        <div class="max-w-5xl mx-auto text-center">
            <div class="flex justify-center mb-6">
                <span class="inline-block px-4 py-1 text-sm font-semibold text-indigo-100 bg-indigo-800 rounded-full">MCP生态系统</span>
            </div>
            <h1 class="text-4xl md:text-5xl lg:text-6xl font-bold mb-6 font-serif">MCP Git Server</h1>
            <p class="text-xl md:text-2xl max-w-3xl mx-auto mb-8 opacity-90">AI驱动的智能Git仓库管理工具，为开发者带来革命性的版本控制体验</p>
            <div class="flex flex-col sm:flex-row justify-center gap-4">
                <a href="https://github.com/modelcontextprotocol/servers/tree/main/src/git" class="px-6 py-3 bg-white text-indigo-600 font-semibold rounded-lg hover:bg-opacity-90 transition duration-200 flex items-center justify-center">
                    <i class="fab fa-github mr-2"></i> GitHub仓库
                </a>
                <a href="#getting-started" class="px-6 py-3 border-2 border-white text-white font-semibold rounded-lg hover:bg-white hover:bg-opacity-10 transition duration-200 flex items-center justify-center">
                    <i class="fas fa-rocket mr-2"></i> 快速开始
                </a>
            </div>
        </div>
    </section>

    <!-- Problem Section -->
    <section class="py-16 px-4 sm:px-6 lg:px-8 bg-white">
        <div class="max-w-5xl mx-auto">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4 font-serif">它能解决什么问题？</h2>
                <p class="text-lg text-gray-600 max-w-3xl mx-auto">传统Git工具在现代开发工作流中的痛点与挑战</p>
            </div>
            
            <div class="grid md:grid-cols-3 gap-8">
                <div class="bg-gray-50 p-6 rounded-xl card-hover">
                    <div class="w-12 h-12 rounded-lg bg-purple-100 text-purple-600 flex items-center justify-center mb-4">
                        <i class="fas fa-terminal text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">命令行操作的繁琐性</h3>
                    <p class="text-gray-600">频繁运行重复命令查看提交历史、分支管理或文件差异，耗时且易出错，在多仓库项目中尤为明显。</p>
                </div>
                
                <div class="bg-gray-50 p-6 rounded-xl card-hover">
                    <div class="w-12 h-12 rounded-lg bg-purple-100 text-purple-600 flex items-center justify-center mb-4">
                        <i class="fas fa-brain text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">缺乏AI集成</h3>
                    <p class="text-gray-600">传统工具如Git CLI或SourceTree无法直接利用AI分析仓库状态或自动化复杂任务，错失效率提升机会。</p>
                </div>
                
                <div class="bg-gray-50 p-6 rounded-xl card-hover">
                    <div class="w-12 h-12 rounded-lg bg-purple-100 text-purple-600 flex items-center justify-center mb-4">
                        <i class="fas fa-user-shield text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">上手难度高</h3>
                    <p class="text-gray-600">现有Git管理工具对非技术用户过于复杂，学习曲线陡峭，难以快速掌握核心功能。</p>
                </div>
            </div>
            
            <div class="mt-12 bg-indigo-50 border-l-4 border-indigo-500 p-4 rounded-r-lg">
                <div class="flex">
                    <div class="flex-shrink-0 text-indigo-500">
                        <i class="fas fa-lightbulb text-xl"></i>
                    </div>
                    <div class="ml-3">
                        <p class="text-indigo-700 font-medium">MCP Git Server正是为解决这些问题而生</p>
                        <p class="text-indigo-600 mt-1">通过MCP协议与AI助手无缝连接，提供智能化的Git操作，简化仓库管理并提升开发效率。</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Features Section -->
    <section class="py-16 px-4 sm:px-6 lg:px-8 bg-gray-50">
        <div class="max-w-5xl mx-auto">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4 font-serif">核心功能概述</h2>
                <p class="text-lg text-gray-600 max-w-3xl mx-auto">强大的功能组合，重塑您的Git工作流程</p>
            </div>
            
            <div class="grid md:grid-cols-2 gap-8">
                <div class="bg-white p-6 rounded-xl card-hover">
                    <div class="flex items-start">
                        <div class="feature-icon rounded-lg flex items-center justify-center mr-4">
                            <i class="fas fa-history text-xl"></i>
                        </div>
                        <div>
                            <h3 class="text-xl font-semibold mb-2">仓库信息读取</h3>
                            <p class="text-gray-600">支持查看提交历史、分支列表(本地/远程)及文件内容，允许AI助手快速获取仓库状态，便于分析和决策。</p>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white p-6 rounded-xl card-hover">
                    <div class="flex items-start">
                        <div class="feature-icon rounded-lg flex items-center justify-center mr-4">
                            <i class="fas fa-code-branch text-xl"></i>
                        </div>
                        <div>
                            <h3 class="text-xl font-semibold mb-2">智能分支管理</h3>
                            <p class="text-gray-600">列出分支(支持筛选包含或不包含特定提交的SHA)，创建或切换分支，简化多分支开发流程。</p>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white p-6 rounded-xl card-hover">
                    <div class="flex items-start">
                        <div class="feature-icon rounded-lg flex items-center justify-center mr-4">
                            <i class="fas fa-search text-xl"></i>
                        </div>
                        <div>
                            <h3 class="text-xl font-semibold mb-2">文件操作与搜索</h3>
                            <p class="text-gray-600">读取和搜索仓库文件，支持正则表达式匹配，快速定位代码或文档，减少手动查找时间。</p>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white p-6 rounded-xl card-hover">
                    <div class="flex items-start">
                        <div class="feature-icon rounded-lg flex items-center justify-center mr-4">
                            <i class="fas fa-project-diagram text-xl"></i>
                        </div>
                        <div>
                            <h3 class="text-xl font-semibold mb-2">上下文感知操作</h3>
                            <p class="text-gray-600">通过MCP协议，结合项目上下文执行Git操作，如自动提交或合并，增强AI驱动的工作流。</p>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white p-6 rounded-xl card-hover">
                    <div class="flex items-start">
                        <div class="feature-icon rounded-lg flex items-center justify-center mr-4">
                            <i class="fas fa-bug text-xl"></i>
                        </div>
                        <div>
                            <h3 class="text-xl font-semibold mb-2">日志与调试支持</h3>
                            <p class="text-gray-600">提供详细日志(~/Library/Logs/Claude/mcp*.log)，便于调试服务器与AI助手交互中的问题。</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Visualization Section -->
    <section class="py-16 px-4 sm:px-6 lg:px-8 bg-white">
        <div class="max-w-5xl mx-auto">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4 font-serif">MCP Git Server 工作流程</h2>
                <p class="text-lg text-gray-600 max-w-3xl mx-auto">AI助手与Git仓库交互的完整流程可视化</p>
            </div>
            
            <div class="mermaid-container">
                <div class="mermaid">
                    sequenceDiagram
                        participant 开发者
                        participant AI助手
                        participant MCPGitServer
                        participant Git仓库
                        
                        开发者->>AI助手: "列出main分支的最新提交"
                        AI助手->>MCPGitServer: MCP协议请求
                        MCPGitServer->>Git仓库: 执行Git命令
                        Git仓库-->>MCPGitServer: 返回提交历史
                        MCPGitServer-->>AI助手: 格式化响应
                        AI助手-->>开发者: 显示清晰结果
                        
                        Note right of AI助手: 整个过程无需开发者<br/>直接操作Git命令
                </div>
            </div>
        </div>
    </section>

    <!-- Use Cases Section -->
    <section class="py-16 px-4 sm:px-6 lg:px-8 bg-gray-50">
        <div class="max-w-5xl mx-auto">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4 font-serif">使用场景</h2>
                <p class="text-lg text-gray-600 max-w-3xl mx-auto">探索MCP Git Server如何改变您的开发工作流</p>
            </div>
            
            <div class="space-y-8">
                <div class="bg-white p-6 rounded-xl card-hover">
                    <div class="flex items-center mb-4">
                        <span class="w-8 h-8 rounded-full bg-purple-100 text-purple-600 flex items-center justify-center mr-3">
                            <i class="fas fa-code-review text-sm"></i>
                        </span>
                        <h3 class="text-xl font-semibold">代码审查与优化</h3>
                    </div>
                    <p class="text-gray-600 mb-4">一名开发者需要审查大型仓库的提交历史。MCP Git Server允许Claude分析提交日志，提取特定分支的变更，生成优化建议，并通过<code class="bg-gray-100 px-1 rounded">mcp-server-git</code>查找相关代码片段，提升审查效率。</p>
                    <div class="bg-blue-50 border-l-4 border-blue-500 p-4 rounded-r-lg">
                        <p class="text-blue-700 font-medium">思考问题：</p>
                        <p class="text-blue-600">你的团队如何利用MCP Git Server的分支管理功能优化代码审查流程？</p>
                    </div>
                </div>
                
                <div class="bg-white p-6 rounded-xl card-hover">
                    <div class="flex items-center mb-4">
                        <span class="w-8 h-8 rounded-full bg-purple-100 text-purple-600 flex items-center justify-center mr-3">
                            <i class="fas fa-server text-sm"></i>
                        </span>
                        <h3 class="text-xl font-semibold">自动化CI/CD管道调试</h3>
                    </div>
                    <p class="text-gray-600 mb-4">DevOps工程师排查CI/CD失败，MCP Git Server通过AI助手查询失败提交的SHA，比较分支差异，自动生成修复提交的建议，并记录到文档，加速问题解决。</p>
                </div>
                
                <div class="bg-white p-6 rounded-xl card-hover">
                    <div class="flex items-center mb-4">
                        <span class="w-8 h-8 rounded-full bg-purple-100 text-purple-600 flex items-center justify-center mr-3">
                            <i class="fas fa-boxes text-sm"></i>
                        </span>
                        <h3 class="text-xl font-semibold">多仓库项目管理</h3>
                    </div>
                    <p class="text-gray-600 mb-4">一个团队管理多个微服务仓库。MCP Git Server集成到VS Code，允许开发者通过自然语言查询(如"列出main分支的最新提交")，快速获取状态并执行批量操作，减少上下文切换。</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Advantages Section -->
    <section class="py-16 px-4 sm:px-6 lg:px-8 bg-white">
        <div class="max-w-5xl mx-auto">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4 font-serif">优势与特色</h2>
                <p class="text-lg text-gray-600 max-w-3xl mx-auto">MCP Git Server在Git管理工具中的独特价值</p>
            </div>
            
            <div class="grid md:grid-cols-2 gap-8 mb-12">
                <div class="bg-purple-50 p-6 rounded-xl border border-purple-100">
                    <h3 class="text-xl font-semibold mb-4 text-purple-700">优势</h3>
                    <ul class="space-y-4">
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-3 text-purple-500">
                                <i class="fas fa-check-circle"></i>
                            </span>
                            <span><span class="font-medium">AI集成：</span>通过MCP协议与Claude、GitHub Copilot等AI助手无缝协作，支持自然语言驱动的Git操作，优于SourceTree的手动界面。</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-3 text-purple-500">
                                <i class="fas fa-check-circle"></i>
                            </span>
                            <span><span class="font-medium">标准化协议：</span>基于MCP的开放标准，兼容多种开发环境(如VS Code、Zed)，无需为每个工具定制集成，优于GitKraken的专有API。</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-3 text-purple-500">
                                <i class="fas fa-check-circle"></i>
                            </span>
                            <span><span class="font-medium">本地化与安全性：</span>数据本地存储，支持Docker部署，适合隐私敏感团队，相比云端Git工具更安全。</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-3 text-purple-500">
                                <i class="fas fa-check-circle"></i>
                            </span>
                            <span><span class="font-medium">可扩展性：</span>与MCP生态中的其他服务器(如Filesystem、GitHub)协同工作，适合复杂项目管理。</span>
                        </li>
                    </ul>
                </div>
                
                <div class="bg-orange-50 p-6 rounded-xl border border-orange-100">
                    <h3 class="text-xl font-semibold mb-4 text-orange-700">局限性</h3>
                    <ul class="space-y-4">
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-3 text-orange-500">
                                <i class="fas fa-exclamation-circle"></i>
                            </span>
                            <span>仍处于早期开发阶段，功能可能不稳定，GitHub报告90+开放问题。</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-3 text-orange-500">
                                <i class="fas fa-exclamation-circle"></i>
                            </span>
                            <span>缺乏原生推送支持，需手动配置远程操作，限制自动化程度。</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-3 text-orange-500">
                                <i class="fas fa-exclamation-circle"></i>
                            </span>
                            <span>配置复杂，需要熟悉JSON和CLI，可能对新手不友好。</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-3 text-orange-500">
                                <i class="fas fa-exclamation-circle"></i>
                            </span>
                            <span>依赖外部AI模型(如Claude)，可能增加API成本。</span>
                        </li>
                    </ul>
                </div>
            </div>
            
            <div class="bg-gray-50 p-6 rounded-xl border border-gray-200">
                <h3 class="text-xl font-semibold mb-4">MCP Git Server vs 传统工具</h3>
                <div class="overflow-x-auto">
                    <table class="min-w-full divide-y divide-gray-200">
                        <thead class="bg-gray-100">
                            <tr>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">功能</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">MCP Git Server</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Git CLI</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">SourceTree</th>
                            </tr>
                        </thead>
                        <tbody class="bg-white divide-y divide-gray-200">
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">AI集成</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><i class="fas fa-check text-green-500"></i> 原生支持</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><i class="fas fa-times text-red-500"></i> 无</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><i class="fas fa-times text-red-500"></i> 无</td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">自然语言交互</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><i class="fas fa-check text-green-500"></i> 支持</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><i class="fas fa-times text-red-500"></i> 不支持</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><i class="fas fa-times text-red-500"></i> 不支持</td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">多仓库管理</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><i class="fas fa-check text-green-500"></i> 优秀</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><i class="fas fa-check text-green-500"></i> 基础</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><i class="fas fa-check text-green-500"></i> 良好</td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">学习曲线</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><i class="fas fa-check text-green-500"></i> 中等</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><i class="fas fa-times text-red-500"></i> 陡峭</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><i class="fas fa-check text-green-500"></i> 平缓</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </section>

    <!-- Pricing Section -->
    <section class="py-16 px-4 sm:px-6 lg:px-8 bg-gray-50">
        <div class="max-w-5xl mx-auto">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4 font-serif">使用门槛与成本</h2>
                <p class="text-lg text-gray-600 max-w-3xl mx-auto">MCP Git Server是开源工具，核心功能免费，但需配置环境和可能的API密钥</p>
            </div>
            
            <div class="grid md:grid-cols-3 gap-6 mb-12">
                <div class="bg-white p-6 rounded-xl border border-gray-200 text-center">
                    <div class="mb-4">
                        <span class="inline-block px-3 py-1 text-sm font-semibold text-green-600 bg-green-100 rounded-full">免费版本</span>
                    </div>
                    <h3 class="text-xl font-semibold mb-2">基础功能</h3>
                    <p class="text-gray-600 mb-4">核心功能完全免费，需自托管并安装Git和Claude Code CLI</p>
                    <div class="text-3xl font-bold mb-4">$0</div>
                    <ul class="space-y-2 text-left text-gray-600 mb-6">
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-2 text-green-500">
                                <i class="fas fa-check"></i>
                            </span>
                            <span>完整Git操作功能</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-2 text-green-500">
                                <i class="fas fa-check"></i>
                            </span>
                            <span>本地存储与处理</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-2 text-green-500">
                                <i class="fas fa-check"></i>
                            </span>
                            <span>多仓库管理</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-2 text-gray-400">
                                <i class="fas fa-times"></i>
                            </span>
                            <span>高级AI功能</span>
                        </li>
                    </ul>
                </div>
                
                <div class="bg-white p-6 rounded-xl border-2 border-purple-500 shadow-lg text-center relative">
                    <div class="absolute top-0 right-0 -mt-3 -mr-3">
                        <span class="inline-block px-2 py-1 text-xs font-semibold text-white bg-purple-500 rounded-full">推荐</span>
                    </div>
                    <div class="mb-4">
                        <span class="inline-block px-3 py-1 text-sm font-semibold text-blue-600 bg-blue-100 rounded-full">AI增强</span>
                    </div>
                    <h3 class="text-xl font-semibold mb-2">AI功能包</h3>
                    <p class="text-gray-600 mb-4">依赖Anthropic API(如Claude)，成本依使用量而定</p>
                    <div class="text-3xl font-bold mb-4">按需付费</div>
                    <ul class="space-y-2 text-left text-gray-600 mb-6">
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-2 text-green-500">
                                <i class="fas fa-check"></i>
                            </span>
                            <span>自然语言交互</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-2 text-green-500">
                                <i class="fas fa-check"></i>
                            </span>
                            <span>智能代码建议</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-2 text-green-500">
                                <i class="fas fa-check"></i>
                            </span>
                            <span>自动化任务</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-2 text-green-500">
                                <i class="fas fa-check"></i>
                            </span>
                            <span>上下文感知操作</span>
                        </li>
                    </ul>
                    <a href="https://www.anthropic.com/api" class="block w-full py-2 px-4 bg-purple-600 hover:bg-purple-700 text-white font-medium rounded-lg transition duration-200">
                        查看定价
                    </a>
                </div>
                
                <div class="bg-white p-6 rounded-xl border border-gray-200 text-center">
                    <div class="mb-4">
                        <span class="inline-block px-3 py-1 text-sm font-semibold text-indigo-600 bg-indigo-100 rounded-full">企业版</span>
                    </div>
                    <h3 class="text-xl font-semibold mb-2">定制方案</h3>
                    <p class="text-gray-600 mb-4">针对企业需求提供定制化解决方案</p>
                    <div class="text-3xl font-bold mb-4">定制报价</div>
                    <ul class="space-y-2 text-left text-gray-600 mb-6">
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-2 text-green-500">
                                <i class="fas fa-check"></i>
                            </span>
                            <span>私有化部署</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-2 text-green-500">
                                <i class="fas fa-check"></i>
                            </span>
                            <span>专属AI模型</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-2 text-green-500">
                                <i class="fas fa-check"></i>
                            </span>
                            <span>高级安全功能</span>
                        </li>
                        <li class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-2 text-green-500">
                                <i class="fas fa-check"></i>
                            </span>
                            <span>专业技术支持</span>
                        </li>
                    </ul>
                    <a href="mailto:contact@modelcontextprotocol.com" class="block w-full py-2 px-4 border border-gray-300 hover:bg-gray-50 text-gray-700 font-medium rounded-lg transition duration-200">
                        联系我们
                    </a>
                </div>
            </div>
            
            <div class="bg-white p-6 rounded-xl border border-gray-200">
                <h3 class="text-xl font-semibold mb-4">技术要求</h3>
                <div class="grid md:grid-cols-2 gap-6">
                    <div>
                        <h4 class="font-medium text-gray-700 mb-2">必需组件</h4>
                        <ul class="space-y-2 text-gray-600">
                            <li class="flex items-start">
                                <span class="flex-shrink-0 mt-1 mr-2 text-blue-500">
                                    <i class="fas fa-check-circle"></i>
                                </span>
                                <span>Git</span>
                            </li>
                            <li class="flex items-start">
                                <span class="flex-shrink-0 mt-1 mr-2 text-blue-500">
                                    <i class="fas fa-check-circle"></i>
                                </span>
                                <span>Python 3.8+ 或 uvx</span>
                            </li>
                            <li class="flex items-start">
                                <span class="flex-shrink-0 mt-1 mr-2 text-blue-500">
                                    <i class="fas fa-check-circle"></i>
                                </span>
                                <span>Docker(可选)</span>
                            </li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="font-medium text-gray-700 mb-2">硬件要求</h4>
                        <ul class="space-y-2 text-gray-600">
                            <li class="flex items-start">
                                <span class="flex-shrink-0 mt-1 mr-2 text-blue-500">
                                    <i class="fas fa-memory"></i>
                                </span>
                                <span>最低: 2GB内存, 500MB存储空间</span>
                            </li>
                            <li class="flex items-start">
                                <span class="flex-shrink-0 mt-1 mr-2 text-blue-500">
                                    <i class="fas fa-microchip"></i>
                                </span>
                                <span>推荐: 4GB内存及以上</span>
                            </li>
                        </ul>
                    </div>
                </div>
                
                <div class="mt-6 bg-yellow-50 border-l-4 border-yellow-400 p-4 rounded-r-lg">
                    <div class="flex">
                        <div class="flex-shrink-0 text-yellow-400">
                            <i class="fas fa-question-circle"></i>
                        </div>
                        <div class="ml-3">
                            <p class="text-yellow-700 font-medium">思考问题：</p>
                            <p class="text-yellow-600">你的开发环境是否支持MCP Git Server的Docker部署，还是更倾向于手动配置？</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Getting Started Section -->
    <section id="getting-started" class="py-16 px-4 sm:px-6 lg:px-8 bg-white">
        <div class="max-w-5xl mx-auto">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4 font-serif">上手指南</h2>
                <p class="text-lg text-gray-600 max-w-3xl mx-auto">快速开始使用MCP Git Server</p>
            </div>
            
            <div class="space-y-12">
                <div>
                    <h3 class="text-2xl font-semibold mb-6 flex items-center">
                        <span class="w-8 h-8 rounded-full bg-purple-100 text-purple-600 flex items-center justify-center mr-3">1</span>
                        安装先决条件
                    </h3>
                    
                    <div class="grid md:grid-cols-2 gap-6 mb-8">
                        <div>
                            <h4 class="font-medium text-gray-700 mb-3">Git</h4>
                            <div class="code-block p-4 mb-4">
                                <p class="text-gray-300"># Linux</p>
                                <p class="text-green-300">sudo apt install git</p>
                                <p class="text-gray-300 mt-2"># macOS</p>
                                <p class="text-green-300">brew install git</p>
                                <p class="text-gray-300 mt-2"># Windows</p>
                                <p class="text-green-300">下载 <a href="https://git-scm.com/" class="text-blue-300 hover:underline">https://git-scm.com/</a></p>
                            </div>
                        </div>
                        
                        <div>
                            <h4 class="font-medium text-gray-700 mb-3">Python/uvx</h4>
                            <div class="code-block p-4">
                                <p class="text-gray-300"># 安装uvx</p>
                                <p class="text-green-300">curl -LsSf https://astral.sh/uv/install.sh | sh</p>
                                <p class="text-gray-300 mt-2"># 安装Claude CLI</p>
                                <p class="text-green-300">从Anthropic官网下载</p>
                                <p class="text-gray-300">验证: <span class="text-green-300">claude --version</span></p>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-blue-50 p-4 rounded-lg">
                        <p class="text-blue-700"><span class="font-medium">可选:</span> 安装Docker</p>
                        <div class="code-block p-4 mt-2">
                            <p class="text-gray-300"># Linux</p>
                            <p class="text-green-300">sudo apt install docker.io</p>
                            <p class="text-gray-300 mt-2"># macOS/Windows</p>
                            <p class="text-green-300">下载 <a href="https://www.docker.com/" class="text-blue-300 hover:underline">https://www.docker.com/</a></p>
                        </div>
                    </div>
                </div>
                
                <div>
                    <h3 class="text-2xl font-semibold mb-6 flex items-center">
                        <span class="w-8 h-8 rounded-full bg-purple-100 text-purple-600 flex items-center justify-center mr-3">2</span>
                        安装MCP Git Server
                    </h3>
                    
                    <div class="grid md:grid-cols-3 gap-6 mb-6">
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-medium text-gray-700 mb-3">Docker方式</h4>
                            <div class="code-block p-4">
                                <p class="text-green-300">docker run --rm -i --mount type=bind,src=$(pwd),dst=/workspace mcp/git</p>
                            </div>
                        </div>
                        
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-medium text-gray-700 mb-3">Python/uvx方式</h4>
                            <div class="code-block p-4">
                                <p class="text-gray-300"># pip安装</p>
                                <p class="text-green-300">pip install mcp-server-git</p>
                                <p class="text-gray-300 mt-2"># 或使用uvx</p>
                                <p class="text-green-300">uvx mcp-server-git --repository /path/to/git/repo</p>
                            </div>
                        </div>
                        
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-medium text-gray-700 mb-3">开发模式</h4>
                            <div class="code-block p-4">
                                <p class="text-green-300">git clone https://github.com/modelcontextprotocol/servers.git</p>
                                <p class="text-green-300">cd servers/src/git</p>
                                <p class="text-green-300">uv run mcp-server-git</p>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div>
                    <h3 class="text-2xl font-semibold mb-6 flex items-center">
                        <span class="w-8 h-8 rounded-full bg-purple-100 text-purple-600 flex items-center justify-center mr-3">3</span>
                        配置MCP
                    </h3>
                    
                    <div class="grid md:grid-cols-2 gap-6 mb-6">
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-medium text-gray-700 mb-3">本地配置</h4>
                            <p class="text-gray-600 mb-3">创建或编辑 ~/.vscode/mcp.json 或用户级 mcp.json：</p>
                            <div class="code-block p-4">
                                <pre class="text-gray-300">{
  "mcpServers": {
    "git": {
      "command": "uvx",
      "args": ["mcp-server-git", "--repository", "/path/to/git/repo"]
    }
  }
}</pre>
                            </div>
                        </div>
                        
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <h4 class="font-medium text-gray-700 mb-3">Docker配置</h4>
                            <div class="code-block p-4">
                                <pre class="text-gray-300">{
  "mcpServers": {
    "git": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "--mount", "type=bind,src=${workspaceFolder},dst=/workspace", "mcp/git"]
    }
  }
}</pre>
                            </div>
                            <p class="text-gray-600 mt-3">在VS Code中，通过Ctrl+Shift+P运行"MCP: Open User Configuration"添加配置。</p>
                        </div>
                    </div>
                </div>
                
                <div>
                    <h3 class="text-2xl font-semibold mb-6 flex items-center">
                        <span class="w-8 h-8 rounded-full bg-purple-100 text-purple-600 flex items-center justify-center mr-3">4</span>
                        启动服务器
                    </h3>
                    
                    <div class="grid md:grid-cols-2 gap-6 mb-6">
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <div class="code-block p-4">
                                <p class="text-gray-300"># 启动服务器</p>
                                <p class="text-green-300">uvx mcp-server-git --repository /path/to/git/repo</p>
                                <p class="text-gray-300 mt-2"># 或使用Docker命令</p>
                            </div>
                        </div>
                        
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <div class="code-block p-4">
                                <p class="text-gray-300"># 验证服务器状态</p>
                                <p class="text-green-300">npx @modelcontextprotocol/inspector uvx mcp-server-git</p>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div>
                    <h3 class="text-2xl font-semibold mb-6 flex items-center">
                        <span class="w-8 h-8 rounded-full bg-purple-100 text-purple-600 flex items-center justify-center mr-3">5</span>
                        与AI助手交互
                    </h3>
                    
                    <div class="bg-gray-50 p-4 rounded-lg mb-6">
                        <div class="code-block p-4">
                            <p class="text-gray-300"># 在Claude Desktop或VS Code中</p>
                            <p class="text-green-300">"列出main分支的提交历史。"</p>
                            <p class="text-gray-300 mt-2"># 或</p>
                            <p class="text-green-300">"搜索仓库中包含'TODO'的文件。"</p>
                            <p class="text-gray-300 mt-2"># 检查日志</p>
                            <p class="text-green-300">tail -n 20 -f ~/Library/Logs/Claude/mcp*.log</p>
                        </div>
                    </div>
                </div>
                
                <div>
                    <h3 class="text-2xl font-semibold mb-6 flex items-center">
                        <span class="w-8 h-8 rounded-full bg-purple-100 text-purple-600 flex items-center justify-center mr-3">6</span>
                        故障排除
                    </h3>
                    
                    <div class="bg-red-50 p-4 rounded-lg">
                        <div class="grid md:grid-cols-2 gap-4">
                            <div>
                                <p class="font-medium text-red-700 mb-2">"命令未找到"</p>
                                <p class="text-red-600">确保Git、Python和Claude CLI已安装，并且在PATH中。</p>
                            </div>
                            <div>
                                <p class="font-medium text-red-700 mb-2">"服务器未响应"</p>
                                <p class="text-red-600">检查mcp.json配置或日志文件。</p>
                            </div>
                            <div>
                                <p class="font-medium text-red-700 mb-2">"权限错误"</p>
                                <p class="text-red-600">确保仓库路径正确且有读写权限。</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
        
        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                document.querySelector(this.getAttribute('href')).scrollIntoView({
                    behavior: 'smooth'
                });
            });
        });
    </script>
</body>
</html>
```